//角色接口
import request from '@/utils/request'

export function listRole(data) {
  return request({
    url: '/backend/role/list',
    method: 'post',
    data:data
  })
}
export function addRole(data) {
  return request({
    url: '/backend/role/add',
    method: 'post',
    data:data
  })
}
export function deleteRole(data) {
  return request({
    url: '/backend/role/delete',
    method: 'post',
    data:data
  })
}
export function editRole(data) {
  return request({
    url: '/backend/role/update',
    method: 'post',
    data:data
  })
}
export function addRolePermission(data) {
  return request({
    url: '/backend/role/add/permission',
    method: 'post',
    data:data
  })
}
export function deleteRolePermission(data) {
  return request({
    url: '/backend/role/delete/permission',
    method: 'post',
    data:data
  })
}



